<template name="webdavFilePicker">
	<div class="webdav-container">
		<ul class="attachments">
			{{#if $neq webdavCurrentFolder '/'}}
				<li class="attachments__item" id="webdav-go-back">
					<div class="attachments__thumb attachments__file">
						{{>icon icon='back'}}
					</div>
				</li>
			{{/if}}
			{{#each webdavNodes}}
				<li class="attachments__item webdav_{{this.type}}">
					{{#with iconType}}
						<div class="attachments__thumb attachments__file--{{type}}">
							{{>icon icon=icon}}
							<div class="attachments__type">{{extension}}</div>
						</div>
					{{/with}}
					<a title="{{this.basename}}" target="_blank" class="attachments__item">
						<div class="attachments__content">
							<div class="attachments__name">{{this.basename}}</div>
							<div class="attachments__details">{{this.lastmod}}</div>
						</div>
					</a>
				</li>
			{{/each}}
		</ul>
	</div>
</template>
